﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeBehind="Auth_MenuEdit.aspx.cs" Inherits="Web.Views.SystemConfig.MenuTableEdit" %>
<%@ Register src="~/UserControls/UCChild.ascx" tagname="UCChild" tagprefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <script language="javascript" type="text/javascript" >
        window.attachEvent("onload", function() {
            AddString();
            var subMenu = document.getElementById("ctl00_ContentPlaceHolder1_TabControl1_tabPage1_uceditAuth_Menu_txt_P_Auth_Menu__Submenu_ID");
            subMenu.attachEvent("onkeyup", AddString);
            var parentMenu = document.getElementById("ctl00_ContentPlaceHolder1_TabControl1_tabPage1_uceditAuth_Menu_cboref_P_Auth_Menu__Parent_Menu_ID_Refdrop");
            parentMenu.attachEvent("onchange", AddString);
        });
        function AddString() {
            var subMenu = document.getElementById("ctl00_ContentPlaceHolder1_TabControl1_tabPage1_uceditAuth_Menu_txt_P_Auth_Menu__Submenu_ID");
            var parentMenu = document.getElementById("ctl00_ContentPlaceHolder1_TabControl1_tabPage1_uceditAuth_Menu_cboref_P_Auth_Menu__Parent_Menu_ID_Refdrop");
            var fullMenu = document.getElementById("ctl00_ContentPlaceHolder1_TabControl1_tabPage1_uceditAuth_Menu_txt_P_Auth_Menu__Menu_ID");
            fullMenu.value = parentMenu.value + '.' + subMenu.value;
        }
    </script>
    <table id="ToolTable" cellspacing="0" cellpadding="0" width="100%" border="0" align="center" >
		<tr>
			<td><ep:toolbar id="Toolbar1" runat="server" DESIGNTIMEDRAGDROP="58"></ep:toolbar></td>
		</tr>
	</table>
    <table id="Table3" cellSpacing="1" cellPadding="1" width="95%" border="0" align="center">
	    <tr valign="top">
	        <td>
		        <p>&nbsp;</p>
	        </td>
        </tr>
        <tr valign="top">
	        <td>		
                <ep:TabControl ID="TabControl1" runat="server" Width="100%"  Height="480px">
                    <ep:TabPage ID="tabPage1" >
	                    <table id="table4"  cellspacing = "1" cellpadding = "1" width="95%" border="0" align="center">
		                    <tr>
			                    <td valign="top" colspan="2">
				                    <ep:ucedit ID="uceditAuth_Menu" runat="server" />
			                    </td>
		                    </tr>
                            <tr>
                            <td style=" text-align:right; width:15%;">菜单显示名称<span class="require_info"></span></td><td><asp:TextBox runat="server" ID="txtMenuDesc"></asp:TextBox></td>
                            </tr>
		                    <tr>
		                        <td width="100px">&nbsp;</td>
			                    <td valign="top">
                                    <uc2:UCChild ID="ChildAuth_Function" runat="server"  />
			                    </td>
		                    </tr>			                    
	                    </table>
                    </ep:TabPage>  
                </ep:TabControl>
	        </td>
        </tr>
    </table>			
</asp:Content>
